package com.example.demo.test;

import java.util.List;
import java.util.stream.Stream;


public class immu {

    public static void main(String[] args) {
        List<String > list = List.of("张无忌","赵敏","周芷若","张三丰","张强");

        Stream<String> stream3 = list.stream();

        stream3.forEach(name-> System.out.println(name));



    }
}
